﻿<?xml version="1.0" encoding="utf-8" ?>

<hibernate-mapping xmlns="urn:nhibernate-mapping-2.2" assembly ="monitor_2_DBwork" namespace ="monitor_2_DBwork" >
  <class name="TrustedAddress" table="TrustedAddresses" >
    <id name ="Id" column ="Id" type ="int" generator="identity"/>
    <property name="Name" column="Name" type="string(15)" unique="true"/>
    <property name="Idobl" column="Idobl" type="int"/>

    <many-to-one name="Oblast" class="Oblast" lazy="false" column="Idobl"
                 cascade="save-update" insert="false" update="false" not-null="false"/>

  </class>
</hibernate-mapping>